package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.member.Email;
import com.ms.p2p.provider.MailAuthProvider;
import com.ms.p2p.service.impl.MailAuthServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class MailAuthProviderImpl implements MailAuthProvider {
    @Autowired
    MailAuthServiceImpl mailAuthService;

    public int insert(Email email) {
        return mailAuthService.insert(email);
    }

    public Email findByUserId(int userId) {
        return mailAuthService.findByUserId(userId);
    }

    public int update(Email email) {
        return mailAuthService.update(email);
    }
}
